package com.menhai.personmanagement.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.MbHealthPlanAdvice;
import com.menhai.personmanagement.entity.MbHealthPlanModel;
import com.menhai.personmanagement.entity.MbHealthSupervisionModel;

/**
 * <p>
 * 健康计划表 Mapper 接口
 * </p>
 *
 * @author shikun
 * @since 2021-11-25
 */
@Mapper
public interface MbHealthSupervisionModelMapper extends BaseMapper<MbHealthSupervisionModel>{

	
	/**
	 * 健康监督显示患者
	 * @param patientName
	 * @param newaddress
	 * @return
	 */
//	public IPage<List<Map<String,Object>>> getListByCondition(@Param("page")Page<MbHealthSupervisionModel> page,@Param("name")String name,@Param("hosnum")String hosnum);
	public IPage<List<Map<String,Object>>> getListByCondition(@Param("page")Page<MbHealthSupervisionModel> page,@Param("name")String name,@Param("hosnum")String[] hosnum);
	 
	
	/**
	 * 新建健康质量监督模板
	 * @param mbHealthPlanModel
	 * @return
	 */
	public int insert(MbHealthSupervisionModel mbHealthSupervisionModel);
	
	/**
	 * 查询所有模板数据
	 * @param hosnum
	 * @return
	 */
	public List<MbHealthSupervisionModel> getAdviceModelListByCondition(@Param("hosnum")String hosnum);
	
	
	/**
	 * 删除评估模板
	 * @param modelId
	 * @return
	 */
	public Integer deleteAdviceModel(@Param("modelId")String modelId );
	
	
	/**
	 * 更新模板
	 * @param mbHealthSupervisionModel
	 * @return
	 */
	public Integer update(MbHealthSupervisionModel mbHealthSupervisionModel);

}
